<?php $sesja = new Zend_Session_Namespace('sesja'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8"/>        
        <link rel="stylesheet" media="screen,projection" type="text/css" href="/css/main.css"/>
        <!--[if lte IE 6]>
        <link rel="stylesheet" type="text/css" href="css/main-msie.css" />
        <![endif]-->
        <script type="text/javascript" src="/js/prototype.js"></script>
        <script type="text/javascript" src="/js/tabs.js"></script>
        <script type="text/javascript" src="/js/tooltip.js"></script>
        <script type="text/javascript" src="/js/showdetail.js"></script>
        <?php
        $this->headScript()->prependFile($this->baseUrl() . '/js/jquery-1.7.1.min.js')
                ->appendFile($this->baseUrl() . '/js/jquery-ui-1.8.18.custom.min.js')
                ->appendFile($this->baseUrl() . '/js/narzedzia.js');
        echo $this->headScript();
        $this->headLink()->appendStylesheet($this->baseUrl() . '/css/redmond/jquery-ui-1.8.18.custom.css');
        echo $this->headLink();
        ?>

        <title>System zarządzania projektem</title>
    </head>
    <body>

        <div id = "main">

            <!--Header-->
            <div id = "header">
                <h1 id = "logo"><a href = "/" title = "Strona główna"><img src = "/design/logo.png" alt = "Logo"></a></h1>

                <?php if ($sesja->zalogowany) {
                    ?>
                    <hr class="noscreen"><!-- Date --><div class="date">
                            <p class="nom">Zalogowany jako:<br/><span class="nonhigh"><a href="/user"><?php echo $sesja->imie . ' ' . $sesja->nazwisko; ?></a></span>
                                |
                                <span class="nonhigh"><a href="/index/logout">wyloguj</a></span></p>
                        </div> <!-- /date -->
                    <?php } ?>

                    <hr class="noscreen"/>
            </div>     
            <!-- /header -->
            <!-- Content -->
            <div class="page box">
                <?php echo $this->layout()->content; ?>

                <?php
                if ($this->akcja != 'login') {
                    include 'menu/menu.php';
                }
                ?>
            </div> <!-- /page -->
            <!-- Footer -->
            <div id="footer">

                <p>© 2012 <a href="http://niemamdrobnych.net/dszczepaniak/">Dawid Szczepaniak</a><br/></p> 

            </div> <!-- /footer -->

        </div> <!-- /main -->

    </body></html>
